package corejava;

public class Laptop {
	
	String color;
	String make;
	String model;
	int size;
	boolean isOn;

	
	void switchOn() {
		if (!isOn) {
			isOn = true;
		} else {
	
	System.out.println("My HP is on!");
		}
		}
		
		void displayInfo() { 
			System.out.println("Laptop is made by - " + make);
			System.out.println("Laptop model is - " + model);
			System.out.println("Laptop is " + size + "inches in size");
			
			if (isOn) {

				System.out.println("The HP is ON");
					
					}else{
				System.out.println("The HP is OFF");
						}
			
			
		
}

		public void isOn() {
			
			
		}
}
